package com.btex.app.entity;

import java.util.List;

/**
 * @author zy zhangyi <zhangyi, 1104745049@QQ.com
 * @version v1.0
 * @project study1
 * @Description
 * @encoding UTF-8
 * @date 2018/10/17
 * @time 下午4:22
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 * </pre>
 */

public class TreatyDishListInfo {


    /**
     * code : 1
     * data : {"long":[{"price":"230.00000000","amount":"100","sum_amount":"100"}],"short":[{"price":"240.00000000","amount":"80","sum_amount":"80"}],"hash":"24d794dfc756320ffadb905d526299bc"}
     * info :
     */

    private int code;
    private DataBean data;
    private String info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public static class DataBean {
        /**
         * long : [{"price":"230.00000000","amount":"100","sum_amount":"100"}]
         * short : [{"price":"240.00000000","amount":"80","sum_amount":"80"}]
         * hash : 24d794dfc756320ffadb905d526299bc
         */

        private String hash;
        private List<LongBean> bids;
        private List<ShortBean> asks;

        public String getHash() {
            return hash;
        }

        public void setHash(String hash) {
            this.hash = hash;
        }

        public List<LongBean> getLongX() {
            return bids;
        }

        public void setLongX(List<LongBean> longX) {
            this.bids = longX;
        }

        public List<ShortBean> getShortX() {
            return asks;
        }

        public void setShortX(List<ShortBean> shortX) {
            this.asks = shortX;
        }

        public static class LongBean {
            /**
             * price : 230.00000000
             * amount : 100
             * sum_amount : 100
             */

            private String price;
            private String amount;
            private String sum_amount;

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getAmount() {
                return amount;
            }

            public void setAmount(String amount) {
                this.amount = amount;
            }

            public String getSum_amount() {
                return sum_amount;
            }

            public void setSum_amount(String sum_amount) {
                this.sum_amount = sum_amount;
            }
        }

        public static class ShortBean {
            /**
             * price : 240.00000000
             * amount : 80
             * sum_amount : 80
             */

            private String price;
            private String amount;
            private String sum_amount;

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getAmount() {
                return amount;
            }

            public void setAmount(String amount) {
                this.amount = amount;
            }

            public String getSum_amount() {
                return sum_amount;
            }

            public void setSum_amount(String sum_amount) {
                this.sum_amount = sum_amount;
            }
        }
    }
}
